#include <stdio.h>
#include <stdlib.h>
#include <string.h>


int bin2int(char *filename) {
  int res;
  char *tmp;
  tmp=(char *)malloc(6*sizeof(*tmp));
  strncpy(tmp, filename+strlen(filename)-10, 6);

  res=32*(tmp[0]-'0')
    +16*(tmp[1]-'0')
    +8*(tmp[2]-'0')
    +4*(tmp[3]-'0')
    +2*(tmp[4]-'0')
    +1*(tmp[5]-'0')
    ;

  free(tmp);

  return res;
}




int main(void) {
char filename[99];
//const char string[] = "33333"; 
int m;
scanf("%s", filename );
m = atoi(filename);
//m = bin2int(filename);
printf("m = %i\n", m);

return 0;
}



